<div id="content_header">
  <h3>Register a new inventory</h3>
</div>
<div class="row">
  <div class="col-md-6 col-lg-4">
    <form name="form" role="form" ng-submit="add()">

      <div class="form-group">
        <label for="Name">
          Inventory Name
        </label>
        <span class="error" ng-show="form.Name.$error.required">Required!</span>
        <input type="text" name="Name" class="form-control" id="Name" placeholder="Input field" ng-model="newItem.Name" required>
      </div>

      <div class="form-group">
        <label for="Code">
          Inventory Code
        </label>
        <span class="error" ng-show="form.Code.$error.required">Required!</span>
        <input type="text" name="Code" class="form-control" id="Code" placeholder="Input field" ng-model="newItem.Code" required>
      </div>

      <button type="submit" class="btn btn-primary" >Submit</button>
    </form>
  </div>
</div>